﻿using System;

namespace Core
{
    // ReSharper disable once InconsistentNaming
    public class ETCancellationToken
	{
		private Action action;

		public void Register(Action callback)
		{
			this.action = callback;
		}

		public void Cancel()
		{
			action.Invoke();
		}
	}
}
